package com.tangcco.lockwell.repository;

import com.tangcco.lockwell.domain.AnswerContentHistory;
import com.tangcco.lockwell.domain.dto.StatisticalStudyReportDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

public interface AnswerContentHistoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AnswerContentHistory record);

    int insertSelective(AnswerContentHistory record);

    AnswerContentHistory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AnswerContentHistory record);

    int updateByPrimaryKey(AnswerContentHistory record);

    List<StatisticalStudyReportDto> statisticalByUserId(@Param("userId")Integer userId);
}